package han.service;

import han.pojo.Details;

import java.util.List;

/**
 * @authou HanDianWei
 * @create 2020-10-23 14:10
 */
public interface DetailService {
    //增加垃圾   addDetail
    int addDetail(Details details);
    //修改垃圾    updDetail
    int updDetail(Details details);
    //删除垃圾     delDetailById
    int delDetailById(int id);
    //按名字搜索  getDetailByName
    List<Details> getDetailByName(String name);
    //按id搜索  getDetailById
    Details getDetailById(int id);
    //按分类查询  getDetailByClassId
    List<Details> getDetailByClassId(int cid);
    //显示所有的分类 getAllDetail
    List<Details> getAllDetail();
}
